SUBROUTINE WELCOME
* Include the RealWeb definitions
INCLUDE #RW.INCLUDE.DEFS FROM /SYSFILES/REALWEB,BP
HTML = ""
CRLF = CHAR(13) : CHAR(10)
* Get the URL of the Reality item server.
STYLESHEET = ""
CALL RW_GET_PARAM("__isurl", STYLESHEET)* Specify the location of the stylesheet.
STYLESHEET = STYLESHEET : "/REALWEB-ITEMS/styles.css"
* Start the HTML page.* Display the text 'Welcome' in the browser's title bar.* Don't specify a background image.* Use the styles stylesheet.* Use the default meta tag.* Make this a normal page.CALL RW_START_HTML_PAGE("Welcome", "", STYLESHEET, "", RWD_BODY)* Insert a heading,
TEXT = "RealWeb"
CALL RWS_HEADING(TEXT, 1, "")
HTML = HTML : TEXT : CRLF
* Insert a paragraph containing the required text.
TEXT = "Welcome to the wonderful world of RealWeb!"
CALL RWS_PARA(TEXT, "", "")
HTML = HTML : TEXT
CALL RW_PUT(HTML)* Complete the page.CALL RW_END_PAGE
RETURN
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.01 Transitional//EN" "http://www.w3.org/TR/html4/loose.dtd"><HTML><HEAD><META NAME="Generator" CONTENT="Reality"><TITLE>Welcome</TITLE><STYLE type="text/css"><!-- @import url(/servlet/realityis/test/REALWEB-ITEMS/styles.css); --></STYLE></HEAD><BODY><H1>
RealWeb
</H1><P>
Welcome to the wonderful world of RealWeb!
</P></BODY></HTML>